﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="LinkCard.AdminCP.AboutUs.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="Stylesheet" type="text/css" href="../Uploadify/CSS/uploadify.css" />
    <script type="text/javascript" src="../Uploadify/Scripts/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../Uploadify/Scripts/jquery.uploadify.js"></script>
    <script type="text/javascript">

        $(window).load(
    function () {
        $(".Test2").fileUpload({
            'uploader': '../Uploadify/Scripts/uploader.swf',
            'cancelImg': 'images/cancel.png',
            'buttonText': 'Browse Files',
            'script': 'BannerUpload.ashx',
            'folder': 'uploads',
            'fileDesc': 'Adv Files(JPG, PNG, GIF, SWF)',
            'fileExt': '*.jpg;*.png;*.gif;*.swf;',
            'sizeLimit': '500000000',
            'multi': true,
            'auto': true,
            'onComplete': function (event, ID, fileObj, response, data) {


                $(".Test").val(response);
                alert($(".Test").val());
            }
        });
    }
);

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <div style="display:none;"><asp:TextBox runat="server" ID="txtFilePath" CssClass="Test"></asp:TextBox>   </div>
                            <asp:FileUpload ID="uploadify" runat="server" CssClass="Test2" />
    </div>
    </form>
</body>
</html>
